<template>
    <div>
        name:<a-input v-model:value="localUser.name" ></a-input>
        address:<a-input v-model:value="localUser.address" ></a-input>
        <a-button @click="returnData" >返回数据</a-button>
    </div>
</template>

<script>
import {Util} from "@lowcode/jpaas-base-lib";
export default {
    name: "democomp1",
    inject:["formVm"],
    props:{
      user:{}
    },
    data(){
        return {
            localUser:{
                name: "ray",
                address:"gz"
            }

        }
    },
    created(){
      this.localUser=Util.deepClone(this.user);
    },
    methods:{
        returnData(){
          this.formVm.data.name=this.localUser.name;
        }
    }
}
</script>

<style scoped>

</style>
